<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],
//
//];

use \think\Route;
//API 接口路由��
Route::get("api/webinfo",'api/WebInfo/index');
Route::get("api/getnav",'api/WebInfo/getNav');

Route::post("api/authenticationVip","api/Vip/authenticationVip",['post']);
Route::post("api/common/excleFlieUpload","api/Common/excleFlieUpload",['post']);
Route::post("api/getClassInfo",'api/Common/getGrade',['post']);
Route::post("api/getCode",'api/Apply/index',['post']);
Route::post("api/login","api/User/login",['post']);
Route::post("api/apply","api/Apply/userApply",['post']);
Route::get("api/getnews","api/News/getNews");
Route::post('api/cooperation',"api/Common/Cooperation",['POST']);
Route::get('api/loginout','api/User/logOut');
Route::post('api/saveloca','api/Basic/saveloca');
Route::post('api/beginloca','api/Basic/beginloca');
Route::post('api/checkLoca','api/Basic/checkLoca');
Route::any("api/getuserInfo",'api/Vip/getuserInfo');
Route::any("api/getPdf","api/Basic/getPdf");
Route::post("api/getCourse","api/Course/getCourse");
Route::post("api/leaves","api/User/addleave",['post']);
Route::get("api/getleaves","api/User/getleaves");
//页面路由
Route::get("index",'index/Index/index');//首页
Route::get("news",'index/News/index');//协会新闻
Route::get("inform",'index/Inform/index');//文件通知
Route::get("course",'index/course/index');//发展历程
Route::get("apply",'index/Apply/index');//加入我们
Route::get("index/index",'index/Account/index');//会员登录后信息
Route::get("we",'index/We/index');//了解我们
Route::get("honour",'index/Honour/index');//光荣墙
Route::get("culture",'index/Culture/index');//计算机文化节
Route::get("cooperation",'index/cooperation/index');//交流合作
Route::get("honorsociety","index/honorsociety/index");
Route::get("user","index/account/index");
Route::get("userinfo","index/account/userinfo");
Route::get("meetingsign","index/account/meetingsign");
Route::get("prove","index/account/prove");
Route::get("leave","index/account/leave");
Route::get("homework","index/account/homework");
Route::get("download","index/account/download");
Route::get("video","index/account/video");


